import { Controller, Get, Inject } from '@midwayjs/core';
import { Context, Application } from '@midwayjs/koa';

@Controller('/')
export class HomeController {
  @Inject()
  ctx: Context;
  app: Application;

  @Get('/', { summary: '首页swagger-ui', description: '重定向到Swagger页面' })
  async home() {
    this.ctx.redirect('/swagger-ui/index.html');
  }
}
